package com.boarsoft.boar.batch.entity;

import java.io.Serializable;
import java.util.Date;

import com.boarsoft.common.Util;

/**
 * 批量的执行
 * 
 * @author Mac_J
 *
 */
public class BatchEvent implements Serializable {
	
	protected static final long serialVersionUID = 5121697045380748188L;

	/** 批量事件的主键 */
	protected String id;
	/** 批量执行记录ID */
	protected String exeId;
	/** 发生时间 */
	protected String time = Util.getStdmfDateTime();
	/** 更新的状态 */
	protected short status;
	/** 上报事件的节点地址 */
	protected String addr;
	/** 事件内容 */
	protected String content;
	/** 上报事件时附加的现场数据（参数） */
	protected String params;
	/** */
	protected String step;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getExeId() {
		return exeId;
	}

	public void setExeId(String exeId) {
		this.exeId = exeId;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}
	
	public void setTime(Date time) {
		this.time = Util.date2str(time, Util.STDDTMF);
	}
	
	public void setTime() {
		this.time = Util.date2str(new Date(), Util.STDDTMF);
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getStep() {
		return step;
	}

	public void setStep(String step) {
		this.step = step;
	}
}